Skip to content

chore(runtime): migrate to rslib bundleless#4352

Open
ScriptedAlchemy wants to merge 27 commits intomainfrom
rslib/runtime
Open

chore(runtime): migrate to rslib bundleless#4352
ScriptedAlchemy wants to merge 27 commits intomainfrom
rslib/runtime

Conversation

@ScriptedAlchemy
Copy link
Member

Per-package rslib bundleless migration for runtime.

@changeset-bot
Copy link

changeset-bot bot commented Feb 2, 2026

⚠️ No Changeset found

Latest commit: 2127f19

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 98317e719d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 24 to 27
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.esm.js"
"default": "./dist/index.js"
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use .mjs for ESM entrypoints

Rslib’s ESM output defaults to .mjs in this repo (see the existing rslib-built package packages/modernjs which exports dist/esm/*.mjs), but the runtime package now points all ESM entrypoints to .js (e.g., ./dist/index.js). If rslib keeps emitting .mjs here as well, ESM consumers will hit MODULE_NOT_FOUND at runtime because the files referenced in module/exports.import don’t exist. Consider switching these ESM paths to .mjs (or explicitly configuring rslib to emit .js).

Useful? React with 👍 / 👎.

@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit 2127f19
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/6989dae6da0a0300087f3cc8
😎 Deploy Preview https://deploy-preview-4352--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Bundle Size Report

8 package(s) changed, 30 unchanged.

Package Total dist Delta ESM gzip Delta
bridge-react 387.2 kB -22092 B (-5.3%) 1.3 kB -3 B (-0.2%)
runtime 32.7 kB +17.3 kB (+112.3%) 786 B +28 B (+3.7%)
vue3-bridge 170.9 kB +12.1 kB (+7.6%) 24.9 kB +1.7 kB (+7.3%)
webpack-bundler-runtime 76.5 kB +2.5 kB (+3.3%) 5.9 kB +49 B (+0.8%)
runtime-core 306.5 kB +1.4 kB (+0.5%) 25.6 kB +133 B (+0.5%)
rspack 35.7 kB +1.2 kB (+3.5%) 190 B no change
enhanced 1.29 MB +1007 B (+0.1%) 744 B no change
runtime-tools 3.6 kB +457 B (+14.1%) 132 B no change

Total dist: 6.39 MB (+14.3 kB (+0.2%))
Total ESM gzip: 164.9 kB (+1.9 kB (+1.2%))

ScriptedAlchemy and others added 22 commits February 5, 2026 16:31
# Conflicts:
#	.github/workflows/actionlint.yml
raven-actions/actionlint@v2 runs npm install internally which fails
on pnpm workspace repos due to workspace:* protocol. Switch to direct
binary download which has no npm dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolve host/remote keys dynamically (supports typed keys like type:name).

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant